import React from 'react';
import styled from 'styled-components'
///封装一个页头标签
const Pagehead = (props) => {
    console.log('页头标签接收的数据',props);
    return (
        <PageheadStyle>
            <h3>{props.title}</h3>
            {/* 插槽 */}
            {props.children}
        </PageheadStyle>
    );
}
const PageheadStyle = styled.aside`
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border:1px solid rgb(235, 237, 240);
    padding: 0 20px ;
`
export default Pagehead;
